package cn.err0r.android.shsmead;


import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

public class IMageShow extends BaseActivity implements OnClickListener{
	
	private ViewScroll detail;
	LinearLayout.LayoutParams parm;
	Button closebtn;
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.crm_os_showimg);
		parm = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.FILL_PARENT);
		RelativeLayout ll = (RelativeLayout)findViewById(R.id.Layout_img_r);
		detail = new ViewScroll(IMageShow.this, getIntent().getStringExtra("img"),ll);	
		ll.addView(detail,parm);
		
		closebtn = (Button)findViewById(R.id.btn_chhelpAnswer_closebtn);
		closebtn.setOnClickListener(this);
	}
	@Override
    public void onClick(View v) {
        switch (v.getId()) {
        case R.id.btn_chhelpAnswer_closebtn:
            finish();
            overridePendingTransition(R.anim.activity_left_in, R.anim.activity_right_out);
            break;

        default:
            break;
        }
    }
}
